<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

$GLOBALS['TOKEN_SECRECT'] = '17e82ffd0414c85320c6516791d968ca'; //token密匙
$GLOBALS['TOKEN_EXPIRY'] = 7200; //token 两小时之内有效

$GLOBALS['DB_CONFIG'] = array(
    'charset' => 'UTF8',
    'db' => 'jcomment',
    'prefix' => 'jc_',
    'rw_separate' => false, //读写分离
    'server' => array(
        array('localhost', 3306, 'root', '', 0), //第一个为主服务器 负责写
        array('localhost', 3306, 'root', '', 0),
    )
);

$GLOBALS['ERROR_CODE'] = array(
    1 => '缺少APP ID',
    2 => '缺少SIGN签名',
    3 => '找不到 APP'
);
?>
